package cn.jg.framework.common.exception;


import cn.jg.framework.common.constant.BizCodeConstant;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ImportException extends BaseException {

    private static final long serialVersionUID = 4588737199610675109L;

    private ImportType importType;

    public ImportException(ImportType importType) {
        super(BizCodeConstant.BAD_REQUEST);
        this.importType = importType;
    }

    public ImportException(ImportType importType, String message) {
        super(message, null,BizCodeConstant.BAD_REQUEST);
        this.importType = importType;
    }

    public ImportException(ImportType importType, Throwable cause) {
        super(cause,BizCodeConstant.BAD_REQUEST);
        this.importType = importType;
    }

    public ImportException(ImportType importType, String message, Throwable cause) {
        super(message, cause,BizCodeConstant.BAD_REQUEST);
        this.importType = importType;
    }

}
